<%@ page language="Java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<c:url value="/user/reservationTour.html" var="theAction" />

<form:form action="reservationTour.html" method="post"
	commandName="bookTourForm">
	<fieldset style="width: 50%; padding: 25px 30px 25px 30px;">

		<legend class="formElement">Rezerwuj wycieczkę</legend>

		<div>
			<b>Nazwa hotelu:</b> ${tour.hotelDto.name}
		</div>
		<div>
			<b>Miasto:</b> ${tour.hotelDto.cityName}
		</div>
		<div>
			<b>Kraj:</b> ${tour.hotelDto.countryName}
		</div>
		<div>
			<b>Cena za osobę:</b> ${tour.basePrice}
		</div>
		<div>
			<b>Opis:</b> ${description}
		</div>
		<div class="formElement">
			<form:label path="participantQuantity" cssClass="formElement">Liczba osób: </form:label>
			<form:input path="participantQuantity" cssClass="formElement" />
		</div>
		<c:forEach var="imgVar" items="${imgPaths}">
			<div>
				<img src="<c:url value="/img/${imgVar}"/> ">
			</div>
		</c:forEach>
		<div class="formElement">
			<input type="submit" value="Dodaj wycieczkę" />
		</div>

	</fieldset>
	<form:hidden path="tourId"/>
</form:form>
